<?php

namespace app\user\validate;

use app\common\validate\BaseValidate;

class UserShareValidate extends BaseValidate
{
    /**
     * 验证规则
     */
    protected $field = [
        'user_share_uuid' => '用户分享ID',
        'user_id'         => '用户ID',
        'article_id'      => '文章ID',
        'share_type'      => '分享类型:1=文章;2=小程序',
        'create_date'     => '分享日期',
        'create_time'     => '',
        'update_time'     => '',

    ];

    /**
     * 验证场景
     */
    protected $scene = [
        'update' => [],
        'save'   => [
            'article_id' => 'integer',
            'share_type' => 'require|in:1,2'
        ],
    ];

    /**
     * 提示消息
     */
    protected $message = [

    ];


}
